package com.user.query.controller;

import java.util.List;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.user.query.model.Menu;
import com.user.query.model.User;
import com.user.query.service.MenuService;
@RequestMapping("/")
@Controller
public class TestController extends BaseController{
	 protected Logger log = Logger.getLogger(getClass());
	 @Resource
		private MenuService menuService;
	@RequestMapping("test")
	public ModelAndView test(){
		ModelAndView view=new ModelAndView("test");
		return view;
	}
	/**
	 * 后台主页面
	 * @param request
	 * @return
	 *//*
	@RequestMapping("/defaultPage")
	public ModelAndView defaultPage(HttpServletRequest request) {
		ModelAndView view = new ModelAndView("/comm/main");
		try {
			User loginUser = getCurrentUser(request);
			List<Menu> list = menuService.queryByLoginUser(loginUser);
			view.addObject("list", list);
		} catch (Exception e) {
			log.info("主页面异常：" + e);
		}
		return view;
	}*/
	
}
